package cn.hchaojie.camp.day01;

public class DemoDistance {
	// 代码格式化 ctrl + shift + f (format)
	public static void main(String[] args) {
//		double a = 1, b = 1;
//		int n = 365;
//		
//		System.out.println(Math.pow(1.01, 365));
//		System.out.println(Math.pow(0.99, 365));
		
//		double random = Math.random();		// [0, 1)
////				[1, 30]
//		int random = (int) (Math.random() * 30 + 1);
//		System.out.println(random);
//		
//		int year = 2014;
//		
//		boolean isLeapYear = year % 400 == 0 || (year % 4 == 0 && year % 100 != 0);
		
//		
//		System.out.println(Short.MAX_VALUE);
//
//		System.out.println(Math.pow(2, 15) - 1);
//		
		int i = 15;
		
		System.out.println(Integer.toHexString(i));
		System.out.println(Integer.toBinaryString(i));
		System.out.println(Integer.toOctalString(i));
		
	}
}
